{% extends 'base.html' %}

{% block content%}

    {% if user.is_superuser %}
    <a style="float:right;" href="{% url docs_delete object.id %}"><img src="{{ MEDIA_URL }}images/remove.png"/></a>
    {% endif %}

<form enctype="multipart/form-data" action="" method="post" id="news_form"><div id="csrf_token">{% csrf_token %}</div>
    <table class="newsform color1">
        <tr><td><strong>Категория:</strong></td></tr>
        <tr><td class="inp {% if form.category.errors %}need{% endif %}">{{ form.category }}</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td><strong>Название документа:</strong></td></tr>
        <tr><td class="inp {% if form.title.errors %}need{% endif %}">{{ form.title }}</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td><strong>Документ:</strong></td></tr>
        <tr><td class="inp {% if form.doc.errors %}need{% endif %}">{{ form.doc }}</td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr><td><strong>Доступ:{{ form.enabled }}</strong></td></tr>
        <tr><td>&nbsp;</td></tr>
    <tr>
        <td><input class="baton1" value="Отправить" type="submit" name="_save"><input class="baton1" type="reset" value="Очистить"></td>
    </tr>
    </table>
</form>

{% endblock %}